package com.demo.test.service;

import java.util.List;

import com.demo.test.dao.UserDao;
import com.demo.test.model.User;

public class UserService {
	private UserDao userDao = new UserDao();

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public List<User> load(){
		
		return this.userDao.load();
	}
	
	public void save(User user){
		this.userDao.save(user);
	}
	
	public void deleteById(int id){
		this.userDao.deleteById(id);
	}

}
